Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pin: follow async pinner changes #9859

Merged
merged 3 commits into from
Jun 2, 2023
Merged

Conversation

MichaelMure
Copy link
Contributor

See ipfs/boxo#290

This PR follow the changes in the Pinner to make listing recursive and direct pins asynchronous, which in turns allow pin/ls to build and emit results without having to wait anything, or accumulate too much in memory.

Note: there is a tradeoff for pin/ls?type=all:

  • keep the recursive pins in memory (which I chose)
  • ask the pinner twice for the recursive pins, and limit memory usage

Also, follow the changes in the GC with similar benefit of not having to wait the full pin list. Add a test.
Also, follow the changes in pin.Verify.

replace #9692

@MichaelMure MichaelMure requested a review from a team as a code owner May 5, 2023 15:02
See ipfs/boxo#290

This PR follow the changes in the Pinner to make listing recursive and direct pins asynchronous, which in turns allow pin/ls to build and emit results without having to wait anything, or accumulate too much in memory.

Note: there is a tradeoff for pin/ls?type=all:
- keep the recursive pins in memory (which I chose)
- ask the pinner twice for the recursive pins, and limit memory usage

Also, follow the changes in the GC with similar benefit of not having to wait the full pin list. Add a test.
Also, follow the changes in pin.Verify.
@BigLep
Copy link
Contributor

BigLep commented May 25, 2023

This will get included with 0.21 per ipfs/boxo#290 (comment)

@BigLep BigLep mentioned this pull request May 30, 2023
@Jorropo Jorropo force-pushed the streamed-pins2 branch 4 times, most recently from de63278 to 06588e7 Compare June 2, 2023 14:52
@Jorropo Jorropo enabled auto-merge (rebase) June 2, 2023 14:53
@Jorropo Jorropo disabled auto-merge June 2, 2023 14:53
@Jorropo Jorropo enabled auto-merge June 2, 2023 14:54
@Jorropo
Copy link
Contributor

Jorropo commented Jun 2, 2023

It WORks oN My MAchiNe.

😭 it did not, incorrect caching (it was running with the wrong kubo bin)

@Jorropo Jorropo merged commit 8f0359a into ipfs:master Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants